﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MonCorLib.Net.Service
{
    public enum NetServerServiceType
    {
        ServerSocket
    }

    public enum NetClientServiceType
    {
        ClientSocket
    }


    public class NetServiceFactory
    {
        public static INetServerServiceable createServerService(NetServerServiceType serviceType)
        {
            switch (serviceType)
            {
                case NetServerServiceType.ServerSocket:
                    return new ServerSocketService();
            }

            return null;
        }

        public static INetClientServiceable createClientService(NetClientServiceType serviceType, string address, int port)
        {
            switch (serviceType)
            {
                case NetClientServiceType.ClientSocket:
                    return new ClientSocketService(address, port);
            }

            return null;
        }
    }
}
